home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 422_04 / console.h < prev    next >
C/C++ Source or Header  |  1994-03-20  |  1KB  |  35 lines

  1. /*
  2.  * Compatibility definitions for the "CONSOLE" interface.
  3.  *
  4.  * The "CONSOLE" interface has been renamed to "VIDEO", and the function
  5.  * names renamed to be consistant with the "WINDOW" library. This header
  6.  * file maps the "VIDEO" functions back to the "CONSOLE" names, and allows
  7.  * previously written MICRO-C programs, which use that interface to compile
  8.  * correctly.
  9.  *
  10.  * When coding a program for the first time under MICRO-C, DO NOT USE THIS
  11.  * FILE. Learn the "VIDEO" functions, since they are now standard.
  12.  *
  13.  * Copyright 1990-1994 Dave Dunfield
  14.  * All rights reserved.
  15.  */
  16.  
  17. /* Low level CONSOLE functions */
  18. #define    video_init    vopen
  19. #define    chkkey        vtstc
  20. #define    getkey        vgetc
  21. #define    putchr        vputc
  22. #define    clear_scr    vclscr
  23. #define    clear_eos    vcleos
  24. #define    clear_eol    vcleol
  25. #define    gotoxy        vgotoxy
  26. #define    updatexy    vupdatexy
  27. #define    cursor_off    vcursor_off
  28. #define    cursor_on    vcursor_line
  29.  
  30. /* High level CONSOLE functions */
  31. #define    draw_box    vdraw_box
  32. #define    clear_box    vclear_box
  33.  
  34. #include \mc\video.h
  35.